package com.leadbank.security.hello.dao;

import com.leadbank.security.hello.model.Book;
import com.leadbank.security.hello.model.BookExample;
import org.springframework.stereotype.Repository;

/**
 * BookDAO继承基类
 */
@Repository
public interface BookDAO extends MyBatisBaseDao<Book, Long, BookExample> {

    /**
     * 减少馆藏数量
     *
     * @param bookId
     * @return 如果影响行数等于>1，表示更新的记录行数
     */
    int reduceNumber(long bookId);
}